/*
 * Project: Sudoku Solver
 * File: solve.h
 *
 * Copyright (C) 2009 Daniel Meekins
 * Contact: dmeekins - gmail
 *
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation, either version 3 of the License, or
 * (at your option) any later version.
 *
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 *
 * You should have received a copy of the GNU General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef SOLVE_H
#define SOLVE_H

#include "grid.h"

#define DIFFICULTY_VERY_HARD  3
#define DIFFICULTY_HARD       2
#define DIFFICULTY_MEDIUM     1
#define DIFFICULTY_EASY       0

/*
 * Tries to solves the passed sudoku puzzle according to the passed difficulty
 * level. The number of tests used to solve the puzzle are based on the
 * difficulty level.
 */
int solve(uint32_t puzzle[ROWS][COLS], int difficulty);

#endif /* SOLVE_H */
